package vip.xiaoh.user.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user")
public class UserController {

    @RequestMapping(value = "/{userId}", method = RequestMethod.GET)
    public String echo(@PathVariable String userId) {
        return "userId " + userId;
    }

}
